<?php
namespace Users\Model;

class Admin
{
	public $a_num;
	public $name;
	public $password;
	
	public function exchangeArray($data)
	{
		$this->a_num					= (isset($data['a_num']))					? $data['a_num']     			: null;
        $this->name 					= (isset($data['name'])) 				    ? $data['name'] 				: null;
        $this->password  				= (isset($data['password']))  				? $data['password']  			: null;	
	}
	// Add the following method:
	public function getArrayCopy()
	{
		return get_object_vars($this);
	}

}